package com.cyy.common.pojo.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @author caoyunyou
 */
@Data
@Schema(name = "路由请求响应实体")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class RouterDto {

    @JsonIgnore
    private Integer id;

    @JsonIgnore
    private Integer parentId;

    @Schema(description = "路由地址")
    private String path;

    @Schema(description = "组件位置")
    private String component;

    @Schema(description = "重定向地址")
    private String redirect;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "其他信息")
    private MetaDto meta;

    @Schema(description = "子级")
    private List<RouterDto> children;
}
